package com.first.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu implements Serializable {

    private Integer mid;
    private String mname;
    private String mcode;
    private String murl;
    private Integer mpid;
    private String micon;
    // 用来存放子权限数据
    private List<Menu> sonMenu;

    //  分页条数
    private int limit;
    //  第几页
    private int page;

    public Menu(Integer mid, String mname, String murl) {
        this.mid = mid;
        this.mname = mname;
        this.murl = murl;
    }
}
